#define  _CRT_SECURE_NO_WARNINGS 1

//swap(nums[++dest], nums[cur]);
//swap(nums[dest++], nums[cur]);